package top.littlejiang.onlinexam.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import top.littlejiang.onlinexam.entity.OlexamUserCourse;

import java.util.List;

/**
 * <p>
 * 用户（学生）课程表 Mapper 接口
 * </p>
 *
 * @author chen
 * @since 2021-03-11
 */
public interface OlexamUserCourseMapper extends BaseMapper<OlexamUserCourse> {

    /**
     * 根据用户id 查询课程
     * @param userId
     * @param courseName
     * @return
     */
    List<Integer> selectIdsByUser(@Param("userId") Integer userId, @Param("courseName") String courseName);
}
